package repository

import (
	"ginDemo/client"
	"ginDemo/model/entity"
)

type user struct {
}

// User ...
func User() *user {
	return &user{}
}

// GetUser 查询单个用户信息
func (user) GetUser(user *entity.User) (err error) {
	return client.MySQL.Take(&user, user).Error
}
